<!--商品资料-->
<template>
  <el-container>
    <el-header>
      <el-button class="btn  float-left" type="primary" round>{{lang._295}}</el-button>
      <!-- 导出按钮 -->
      <el-button class="float-right search-btn" type="primary" round>{{lang._012}}</el-button>
      <el-input class="select-input float-right" v-model="value" :placeholder="lang._296"></el-input>
      <el-select class="select-input float-right" width="149" v-model="value" :placeholder="lang._297">
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
        </el-option>
      </el-select>
      <el-select class="select-input float-right" width="130" v-model="value" :placeholder="lang._298" style="width:130px;border-radius:14px 0 0 14px">
      </el-select>
      <!-- 时间选择 -->
    </el-header>
    <el-main>
      <el-table class="text-center tables" border :data="tableData" stripe header-cell-style="color:#409eff;background-color:#ECF5FF;text-align:center;font-size:15px;padding-left:0;padding-right:0">
        <el-table-column prop="uid" :label="lang._045" width="40">
        </el-table-column>
        <el-table-column prop="operate" :label="lang._028" width="40">
          <template slot-scope="scope">
            <el-button type="text" size="small">{{lang._078}}</el-button>
          </template>
        </el-table-column>
        <el-table-column prop="salesPromotionName" :label="lang._296" width="100">
        </el-table-column>
        <el-table-column prop="createStore" :label="lang._286" width="300">
        </el-table-column>
        <el-table-column prop="salesPromotionType" :label="lang._299" width="100">
        </el-table-column>
        <el-table-column prop="application" :label="lang._300" width="200">
        </el-table-column>
        <el-table-column prop="startDate" :label="lang._301" width="100">
        </el-table-column>
        <el-table-column prop="endDate" :label="lang._302" width="100">
        </el-table-column>
        <el-table-column prop="status" :label="lang._102" width="100">
        </el-table-column>
        <el-table-column prop="coupon" :label="lang._302">
        </el-table-column>
      </el-table>
    </el-main>
  </el-container>


</template>
<style lang="less" scoped>
  .el-header {
    .btn {
      margin-top: 15px;
      height: 30px;
      line-height: 30px;
      padding: 0 20px;
      margin-left: 20px;
      margin-right: 20px;
    }
    .search-btn {
      height: 30px;
      line-height: 30px;
      padding: 0 20px;
      margin-top: 15px;
      border-radius: 0 14px 14px 0;
      margin-right: 20px;
      margin-left: 0;
    }
    .select-input {
      width: 149px;
      height: 28px;
      line-height: 28px;
      margin-top: 15px;
      border: 1px solid #409EFF;
      border-right: none;
      overflow: hidden;
    }
  }

</style>
<style scoped>
  .el-header,
  .el-footer {
    background-color: #FFF;
    color: #333;
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .el-main {
    color: #333;
    text-align: center;
    /* line-height: 160px; */
  }

  body>.el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }

</style>
<style>
  .el-input__inner {
    height: 28px;
    line-height: 28px;
    border: none;
    margin: 0;
  }

  .el-table .cell,
  .el-table th div,
  .el-table--border td:first-child .cell,
  .el-table--border th:first-child .cell {
    padding-left: 0;
  }

  .el-table .cell,
  .el-table th div {
    padding-right: 0;
  }

</style>


<script>
  export default {
    props: ['lang'],
    data() {
      return {
        tableData: [{
            uid: '1',
            salesPromotionName: '超值特惠',
            createStore: 'Tast Of Blue',
            salesPromotionType: '打折促销',
            application: '实体店',
            startDate: '2017-12-13',
            endDate: '2022-5-30',
            status: '未过期',
            coupon: '已制券：2| 已使用：2|使用率：100%'
        },{
            uid: '1',
            salesPromotionName: '超值特惠',
            createStore: 'Tast Of Blue',
            salesPromotionType: '打折促销',
            application: '实体店',
            startDate: '2017-12-13',
            endDate: '2022-5-30',
            status: '未过期',
            coupon: '已制券：2| 已使用：2|使用率：100%'
        },{
            uid: '1',
            salesPromotionName: '超值特惠',
            createStore: 'Tast Of Blue',
            salesPromotionType: '打折促销',
            application: '实体店',
            startDate: '2017-12-13',
            endDate: '2022-5-30',
            status: '未过期',
            coupon: '已制券：2| 已使用：2|使用率：100%'
        },{
            uid: '1',
            salesPromotionName: '超值特惠',
            createStore: 'Tast Of Blue',
            salesPromotionType: '打折促销',
            application: '实体店',
            startDate: '2017-12-13',
            endDate: '2022-5-30',
            status: '未过期',
            coupon: '已制券：2| 已使用：2|使用率：100%'
        },]
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  }

</script>
